<template>
<div>
   <ProForm ref="dialogForm" :config="addeditConfig" :echo="echo"></ProForm>
</div>
</template>

<script setup>
import { ref } from 'vue' 
import {addeditConfig} from './formConfig'

const props = defineProps({
  echo:Object
})
const dialogForm = ref(null);
const DialogCofirm = (cb) => {
  dialogForm.value.submit((e) => {
    cb(e)
  });
};
defineExpose({
    DialogCofirm
})

</script>

<style lang='less'  scoped>

</style>